﻿namespace Core
{
	using Domain;
	using Implementation;
	using Microsoft.Practices.Unity;
	using Providers.DataAccess;
	using Providers.DataAccess.Implementation;

	public static class CoreRegistration
	{
		public static void RegisterWithIn(IUnityContainer container)
		{
			container.RegisterType<IDataAccessProvider, NHibernateDataAccessProvider>();
			container.RegisterType<AccountRepository, NHibernateAccountRepository>();
			container.RegisterType<RegistrationService, RegistrationService>();
		}
	}
}
